﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Print._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script src="Scripts/Test.js" type="text/javascript"></script>
    <Script   defer>
        function SetPrintSettings() {
            //   --   advanced   features     
            factory.printing.SetMarginMeasure(2)   //   measure   margins   in   inches     
            factory.SetPageRange(false, 1, 3)   //   need   pages   from   1   to   3     
            factory.printing.printer = "HP   DeskJet   870C"  //打印机选择   
            factory.printing.copies = 2                     //打印份数
            factory.printing.collate = true
            factory.printing.paperSize = "A4"     //纸张设置
            factory.printing.paperSource = "Manual   feed"

            //   --   basic   features     
            factory.printing.header = "This   is   MeadCo"     //页眉设置
            factory.printing.footer = "Advanced   Printing   by   ScriptX"     //页脚设置
            factory.printing.portrait = false
            factory.printing.leftMargin = 1.0     //左边距
            factory.printing.topMargin = 1.0     //上边距
            factory.printing.rightMargin = 1.0     //右边距
            factory.printing.bottomMargin = 1.0     //下边距
        }
        SetPrintSettings();
</script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to ASP.NET!
    </h2>
    <p>
        To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>
</asp:Content>
